<template>
  <div class="home">
    <router-view />
  </div>

</template>

<script>

export default {
  name: 'App',
  data () {
    return {}
  },
  components: {},
  created () {
    if (sessionStorage.getItem('list')) {
      this.$store.replaceState(Object.assign({}, this.$store.state, JSON.parse(sessionStorage.getItem('list'))));
    }
    window.addEventListener('beforeunload', () => {
      sessionStorage.setItem('list', JSON.stringify(this.$store.state));
    });
  }
}
</script>

<style scoped>
.home {
  font-family: 'msyh';
}
body {
  font-family: 'msyh';
}
</style>
